#indent#[List_FromString:'optionList','item1','item2','item3',ListDelimiter='|']
<select name="#select##selstart#MyField#selend#">
[Loop:(List_ItemCount:'optionList')]
	[var_set:'optionItem'=(List_GetItem:'optionList',ListIndex=(loopcount))]
	<option value="[var:'optionItem']"[if:(var:'optionItem')==(var:'MyField')] selected[/if]>[var:'optionItem']</option>
[/loop]
</select>

<!--From a tip by Alex Pilson. This requires the name value and the presented value be the same
Make sure to change (var:'MyField') to the type of substitution tag you are working with
Include the following before to clear list if this is used more than once on a page
[if:(List_ItemCount:'optionList')>'0'][Loop:(List_ItemCount:'optionList')][List_RemoveItem:'optionList',ListIndex='1'][/Loop][/if]
-->

